<?php

	$config = array(
		'application' => array(
			'name' => 'hikle',
			'url' => 'http://127.0.0.1/hikle/',
			'domain' => '.hikle.nl',
			'folder' => 'hikle',
			'version' => 0.1,
			'authors' => array(
				'Mike Vercoelen',
				'Michael Beurskens'
			),
			'isLive' => false,
			'externalLibraries' => array(
				// 'phpmailer.php'
			),
			'defaultLanguage' => 'nl'
		),		
		'routing' => array(
			'defaultController' => 'home',
			'defaultAction' => 'index',
			'translations' => array(
				'gebruikers' => 'users',
				'toevoegen' => 'add'
			)
		),
		'database' => array(
			'connections' => array(
				'default' => array(
					'host' => '127.0.0.1',
					'name' => 'hikle',
					'port' => 3306,
					'username' => 'root',
					'password' => 'root',
					'provider' => 'mysql'
				)
			),
			'frameworkTableNames' => array(
				'sessions' => 'sessions',
				'users' => 'users',
				'userGroups' => 'userGroups',
				'userGroupPermissions' => 'userGroupPermissions'
			)
		),
		'session' => array(
			'hash' => 'abcx',
			'cookieName' => 'abcde',
			'lifeTime' => 1
		)
	);
	
	define('START', microtime());
	define('ROOT_DIR', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
	define('APP_DIR', ROOT_DIR . $config['application']['folder'] . DIRECTORY_SEPARATOR);	
	define('FW_DIR', ROOT_DIR . 'framework' . DIRECTORY_SEPARATOR);
	define('URL', $config['application']['url']);
	
	include(FW_DIR . 'main.php');
	
	$application = new Application(&$config);
	$application->start();

?>